﻿using Company.Dialog.Services;
using Company.Dialog.ViewModels;
using Company.Dialog.Views;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Company.Dialog
{
    public class CompanyDialogModule : IModule
    {
        public void OnInitialized(IContainerProvider containerProvider)
        {
            // 初始化MessageBoxService
            new MessageBoxService(containerProvider.Resolve<IDialogService>());
        }

        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterDialog<MessageBoxDialogView, MessageBoxDialogViewModel>();
        }
    }
}
